<?php

namespace MyApp\Controller;

use RedBean_Facade as R;
use Lib\Annotations\Route as Route;
use Lib\Annotations\Middleware as Middleware;

/**
 * @Route("/")
 */
class HomeController extends \SlimController\SlimController
{   
    /**
     * 
     * @Route("/", name="index")
     */
    public function indexAction()
    {
        //$userinfo = $this->app->request->post('userinfo');
        $this->render('home/index');
    }
    
    /**
     * 
     * @Route("/game", name="game")
     * @Middleware({
     * })
     */
    public function gameAction()
    {
        $this->render('home/game');
    }
}